package com.rc.saas.tenant.vo.hlht;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author wangzhengwei
 * @create 2021/10/29
 */
public class HlhtTenantOpenExportVo {

    @ExcelProperty("本方编号")
    private String tenantCode;

    @ExcelProperty("本方运营商")
    private String tenantName;

    @ExcelProperty("对方编号")
    private String hlhtTenantCodeOrHlhtOperatorId;

    @ExcelProperty("对方运营商")
    private String hlhtTenantNameOrHlhtOperatorName;

    @ExcelProperty("互联品牌")
    private String hlhtTenantShortNameOrHlhtOperatorShortName;

    @ExcelIgnore
    private String tenantShortname;

    @ExcelIgnore
    private String hlhtTenantName;

    @ExcelIgnore
    private String hlhtTenantShortname;

    @ExcelIgnore
    private String hlhtOperatorName;

    @ExcelIgnore
    private String hlhtOperatorShortname;

    @ExcelIgnore
    private String hlhtTenantCode;

    @ExcelIgnore
    private String hlhtOperatorId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("互联开始时间")
    private Date beginDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("互联结束时间")
    private Date endDate;

    @ExcelProperty("互联类型")
    private String hlhtOpenType;

    @ExcelProperty("互联方向")
    private String hlhtType;

    @ExcelProperty("互联状态")
    private String status;

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getTenantShortname() {
        return tenantShortname;
    }

    public void setTenantShortname(String tenantShortname) {
        this.tenantShortname = tenantShortname;
    }

    public String getHlhtTenantName() {
        return hlhtTenantName;
    }

    public void setHlhtTenantName(String hlhtTenantName) {
        this.hlhtTenantName = hlhtTenantName;
    }

    public String getHlhtTenantShortname() {
        return hlhtTenantShortname;
    }

    public void setHlhtTenantShortname(String hlhtTenantShortname) {
        this.hlhtTenantShortname = hlhtTenantShortname;
    }

    public String getHlhtOperatorName() {
        return hlhtOperatorName;
    }

    public void setHlhtOperatorName(String hlhtOperatorName) {
        this.hlhtOperatorName = hlhtOperatorName;
    }

    public String getHlhtOperatorShortname() {
        return hlhtOperatorShortname;
    }

    public void setHlhtOperatorShortname(String hlhtOperatorShortname) {
        this.hlhtOperatorShortname = hlhtOperatorShortname;
    }

    public String getHlhtTenantCode() {
        return hlhtTenantCode;
    }

    public void setHlhtTenantCode(String hlhtTenantCode) {
        this.hlhtTenantCode = hlhtTenantCode;
    }

    public String getHlhtOperatorId() {
        return hlhtOperatorId;
    }

    public void setHlhtOperatorId(String hlhtOperatorId) {
        this.hlhtOperatorId = hlhtOperatorId;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getHlhtOpenType() {
        return hlhtOpenType;
    }

    public void setHlhtOpenType(String hlhtOpenType) {
        this.hlhtOpenType = hlhtOpenType;
    }

    public String getHlhtType() {
        return hlhtType;
    }

    public void setHlhtType(String hlhtType) {
        this.hlhtType = hlhtType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getHlhtTenantCodeOrHlhtOperatorId() {
        if ("内部互联".equals(this.hlhtOpenType)){
            return hlhtTenantCode;
        }else if ("外部互联".equals(this.hlhtOpenType) || "政务互联".equals(this.hlhtOpenType)){
            return this.hlhtOperatorId;
        }
        return null;
    }

    public void setHlhtTenantCodeOrHlhtOperatorId(String hlhtTenantCodeOrHlhtOperatorId) {
        this.hlhtTenantCodeOrHlhtOperatorId = hlhtTenantCodeOrHlhtOperatorId;
    }

    public String getHlhtTenantNameOrHlhtOperatorName() {
        if ("内部互联".equals(this.hlhtOpenType)){
            return hlhtTenantName;
        }else if ("外部互联".equals(this.hlhtOpenType) || "政务互联".equals(this.hlhtOpenType)){
            return this.hlhtOperatorName;
        }
        return null;
    }

    public void setHlhtTenantNameOrHlhtOperatorName(String hlhtTenantNameOrHlhtOperatorName) {
        this.hlhtTenantNameOrHlhtOperatorName = hlhtTenantNameOrHlhtOperatorName;
    }

    public String getHlhtTenantShortNameOrHlhtOperatorShortName() {
        if ("内部互联".equals(this.hlhtOpenType)){
            return hlhtTenantShortname;
        }else if ("外部互联".equals(this.hlhtOpenType) || "政务互联".equals(this.hlhtOpenType)){
            return this.hlhtOperatorShortname;
        }
        return null;
    }

    public void setHlhtTenantShortNameOrHlhtOperatorShortName(String hlhtTenantShortNameOrHlhtOperatorShortName) {
        this.hlhtTenantShortNameOrHlhtOperatorShortName = hlhtTenantShortNameOrHlhtOperatorShortName;
    }
}
